package cn.growthgate.fgo.service;

import cn.growthgate.fgo.common.base.BaseService;
import cn.growthgate.fgo.core.shiro.SimpleUser;
import cn.growthgate.fgo.entity.User;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author GrowthGate
 * @since 2019-01-20
 */
public interface IUserService extends BaseService<User> {

	public User getByUsername(String username);

	public User getByUsernameAndPassword(String account, String password);

	public User getByName(String name);

	public SimpleUser transformSimpleUser(User user);

	public boolean create(User user);

	public void setPassword(User user, String password);

}
